package com.ihisomp.controller;

import com.ihisomp.base.Result;
import com.ihisomp.service.ISysPositionService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 职位信息 前端控制器
 * </p>
 *
 * @author zy
 * @since 2022-04-19
 */
@RestController
@Api(value = "职位信息", tags = "职位信息")
@RequestMapping("/sysPosition")
public class SysPositionController {

    Logger logger = LoggerFactory.getLogger(getClass());

    @Autowired
    private ISysPositionService sysPositionService;

    /**
     * 职位数据列表
     *
     * @return
     */
    @PostMapping("/selectList")
    @ApiOperation("职位列表数据")
    public Result selectList() {
        logger.info("职位数据列表");
        Result result = sysPositionService.selectList();
        return result;
    }

}
